<template>
	<view>
		<!-- 顶部区域 -->
		<view class="smatr-page-head">
			<view class="smart-page-heda-title">srcoll-view滚动视图</view>
		</view>
		<view class="smart-padding-wrap">
			<view class="smart-text">可滚动视图区域</view>
			<view>vertical scoll 纵向滚动</view>

			<view>
				<scroll-view class="scroll-y" scroll-y="true">
					<view class="scroll-view-item smart-bg-red">A</view>
					<view class="scroll-view-item smart-bg-blue">B</view>
					<view class="scroll-view-item smart-bg-green">C</view>
				</scroll-view>
			</view>
			<view>horizontal scroll 横向滚动</view>
			<view>
				<scroll-view class="scroll-x" scroll-x="true" scroll-left="120">
					<view class="scroll-view-item-h smart-bg-red">A</view>
					<view class="scroll-view-item-h smart-bg-blue">B</view>
					<view class="scroll-view-item-h smart-bg-green">C</view>
				</scroll-view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		methods: {

		}
	}
</script>

<style>
	.scroll-view-item{
		width: 100%;
		height: 300rpx;
		line-height: 300rpx;
	}
	.scroll-x{
		white-space: nowrap;
		width: 100%;
	}
	.scroll-y{
		height: 300rpx;
	}
	.scroll-view-item-h{
		display: inline-block;
		height: 300rpx;
		width: 100%;
		line-height: 300rpx;
		text-align: center;
	}
	.smart-bg-red{
		background-color: red;
	}
	.smart-bg-blue{
		background-color: blue;
	}
	.smart-bg-green{
		background-color: green;
	}
</style>